class Fileobject:
    def __init__(self):
        self.file=''
    def open(self,file):
        self.file=open(file)
        return self.file
    def close(self):
        self.file.close()
    def __del__(self):
        self.file.close()
